<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>layuiAdmin pro - 通用后台管理模板系统（单页面专业版）</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="layui/css/layui.css" media="all">
		<script>
			/^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
		</script>
	</head>
	<body>
		<div id="LAY_app"></div>
		<script src="layui/layui.js"></script>
		<script>
			layui.config({
			  base: '../src/' //指定 layuiAdmin 项目路径，本地开发用 src，线上用 dist
			  ,version: '1.4.0'
			}).extend({
				   treeTable:'lib/extend/treeTable',
				   iconHhysFa: 'lib/extend/iconHhysFa',
				   excel: 'lib/extend/excel'
			}).use(['index','layer',"treeTable","iconHhysFa","excel"],function(){
				  var treeTable = layui.treeTable;
				  var iconHhysFa = layui.iconHhysFa;
				  var excel = layui.excel;
			});


			//所有 table 实例均会有效，这样就不用在每个 table.render() 都设置一次 token
			// console.log("设置token");
			layui.use(['table'], function() {
				var table = layui.table;
				table.set({
					headers: { //通过 request 头传递
						access_token: layui.data('layuiAdmin').access_token
					},
					where: { //通过参数传递
						access_token: layui.data('layuiAdmin').access_token
					}
				});
			});
		</script>
	</body>
</html>
